package grape.workflow.rest.flowable.ui.modeler;

import org.flowable.ui.modeler.rest.app.EditorGroupsResource;
import org.flowable.ui.modeler.rest.app.EditorUsersResource;
import org.flowable.ui.modeler.servlet.ApiDispatcherServletConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcRegistrations;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.Import;

/**
 * Created by yangwei
 * Created at 2020/6/4 13:19
 */
@ComponentScan(value = {
        "org.flowable.ui.modeler.rest.app",
        //"org.flowable.ui.common.rest"
},
        excludeFilters = {
                @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = EditorUsersResource.class),
                @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = EditorGroupsResource.class),
        }
)
@Import(ApiDispatcherServletConfiguration.class)
@Configuration
public class ModelerDispatcherServletConfiguration implements WebMvcRegistrations {
}
